var parent_vm = avalon.define({
	$id:"top_controller",
	message_count:0,
	load_new_message:function(){
		$.ajax({
			type:"post",
			url:get_reply_remind_url,
			dataType:"json",
			success:function(data){
				console.log(data);
				parent_vm.message_count = data;
			},
			error:function(){
				vm.toast_msg = "网络错误";
				vm.is_toast_show = true;
				vm.clear_toast();
			},
		});	
	},
	go_to_consult_history:function(){
		location.href = 	go_to_consult_history_url;
	},
	close_count_message:function(event){
		event.stopPropagation();
		parent_vm.message_count = 0;	
	},
});
parent_vm.load_new_message();